package com.ruoyi.project.purchase.domain;

import java.util.List;
import java.util.Objects;

public class VO extends Purchase {
    private List<Purch_drug> drugList;
    private Integer status;

    public VO(List<Purch_drug> drugList) {
        this.drugList = drugList;
    }

    public VO(String purOrderId, Double purCount, Integer purVerify, Integer supId, Supplier supplier, List<Purch_drug> drugList) {
        super(purOrderId, purCount, purVerify, supId, supplier);
        this.drugList = drugList;
    }

    public VO() {
    }

    public List<Purch_drug> getDrugList() {
        return drugList;
    }

    public void setDrugList(List<Purch_drug> drugList) {
        this.drugList = drugList;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        VO vo = (VO) o;
        return Objects.equals(drugList, vo.drugList) &&
                Objects.equals(status, vo.status);
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), drugList, status);
    }

    @Override
    public String toString() {
        return "VO{" +
                "drugList=" + drugList +
                ", status=" + status +
                '}';
    }
}
